<?php
class WxMenuController extends WechatAppController{
	
	public function beforeFilter(){
		parent::beforeFilter();
	}


	public function admin_index() {
		$options = array(
			'appid'=>Configure::read("Wechat.appID"),
			'appsecret'=>Configure::read("Wechat.appsecret")
		);
		App::import('Vendor','Wechat.WechatSDK',array('file'=>'wxmsg'.DS.'wechat.class.php'));
		$WechatSDK = new WechatSDK($options);
		$menus = $WechatSDK->getMenu();
		$this->set('menus',$menus);
	}
}
